package net.zjitc.service;

import net.zjitc.pojo.Evaluate;
import net.zjitc.pojo.Product;
import net.zjitc.utils.PageBean;

import java.util.List;

/**
 * Created by Administrator on 2017/11/22.
 */
public interface ProductService {
    PageBean<Product> findPageBean(int page, int pageSize);

    void productAdd(Product product);

    Product findProductById(String pid);

    void productEdit(Product product);

    void productDelete(String pid);

    List<Product> findAllProduct();

    PageBean<Product> findPageBeanByCid(int page, int pageSize, int cid);

    PageBean<Product> findPageBeanByCsid(int page, int pageSize, int csid);

    List<Evaluate> findEvaluateByPid(String pid);
}
